<template>
  <div>
    <el-form :model="fromData" :rules="rules">
      <el-form-item prop="mobile">
        <el-input v-model="fromData.username" />
      </el-form-item>
      <el-form-item prop="password">
        <el-input v-model="fromData.password" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      fromData: {
        username: '',
        password: ''
      },
      rules: {
        mobile: [
          { required: true, message: '手机不能为空', trigger: 'blur' }
        ],
        password: [
          { required: true, message: '密码不能为空', trigger: 'blur' }
        ]
      }
    }
  }
}
</script>

<style>

</style>
